package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Permission;
import com.woniu.supermarket.vo.MenuVo;

import java.util.List;


public interface IPermissionService {
    int addPermission(Permission permission);
    int modifyPermission(Permission permission);
    int removePermission(int id);
    PageInfo<Permission> findPermissionByCons(Integer now, Integer size, String name);



    List<MenuVo> queryMenu();

    List<Permission> queryParentMenu();

    List<MenuVo> queryMenuOfSomeone(String userName);

    List<MenuVo> queryAllPermissions();

    List<String> queryPermissionsOfOne(String username);


    List<String> queryPermissionsForSuperAdmin();

}
